package com.stock.mapper;

import com.stock.DO.Stock4EvrDayDomain;
import com.stock.DO.Stock4MinuteDomain;
import com.stock.DO.StockUpdownDomain;
import com.stock.entity.StockRtInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
* @author 45215
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2025-10-21 14:31:09
* @Entity com.stock.entity.StockRtInfo
*/
@Mapper
public interface StockRtInfoMapper {

    List<StockUpdownDomain> stockIncreaseLimit(@Param("curTime") String curDateTime);

    List<StockUpdownDomain> stockAll();

    List<Map> upDownCount(@Param("avlDate") LocalDateTime curTime, @Param("openDate") LocalDateTime openDate, @Param("flag") Integer flag);

    List<Map> stockUpDownScopeCount(@Param("avlDate") LocalDateTime avlDateTime);

    List<Stock4MinuteDomain> stockScreenTimeSharing(@Param("stockCode") String code,@Param("startDate") LocalDateTime openDate,@Param("endtDate") LocalDateTime curDate);

    List<Stock4EvrDayDomain> stockCreenDkLine(@Param("stockCode") String stockCode,@Param("beginDate")  LocalDateTime pre20Day,@Param("endDate")  LocalDateTime curTime);

    /**
     * 批量插入功能
     * @param stockRtInfoList
     */
    int insertBatch(List<StockRtInfo> stockRtInfoList);
}




